package tq.com.systools.system;

import android.os.Environment;

import java.io.File;

public class DirectHelper {

    static public String externalStorageDirectory(){
        return Environment.getExternalStorageDirectory().getAbsolutePath();
    }
    static public String cacheDirectory(){
        return Environment.getDownloadCacheDirectory().getAbsolutePath();
    }

    static public String getAppCacheDirectory(){
        String dir = externalStorageDirectory();
        String storePath = dir + File.separator + "tqCache";

        File lFile = new File(storePath);
        if(!lFile.exists()){
            lFile.mkdir();
        }
        return storePath;
    }
}
